#ifndef __ZLOG_APP_H__
#define __ZLOG_APP_H__
#include <stdio.h>
#include "zlog.h"

#define ZLOG_CAG_UP_TY "up_treaty"
#define ZLOG_CAG_MQTT "down_treaty"
#define ZLOG_CAG_ALL "all"
#define ZLOG_CAG_EXP "exp"
#define ZLOG_CAG_MODBUS_RTU "modbus_rtu"
class zlog_app
{
private:
    bool init_flag;
    zlog_category_t *zlog_all;
    zlog_category_t *zlog_up;
    zlog_category_t *zlog_down;
    zlog_category_t *zlog_exp;

public:
    zlog_app();
    ~zlog_app();

    zlog_category_t *get_category_all() { return zlog_all; }
    zlog_category_t *get_category_up() { return zlog_up; }
    zlog_category_t *get_category_down() { return zlog_down; }
    zlog_category_t *get_category_exp() { return zlog_exp; }
};

#endif